package com.ckh.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ckh
 * @since 2022-04-04
 */
@Data
@TableName("notice_class")
public class NoticeClass implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * Description: a
     * 封面图
     * @author: luoCan
     */
    private String picture;

    /**
     * Description: a
     * 公共内容
     * @author: luoCan
     */
    private String noticeContent;

    /**
     * Description: a
     * 创建时间
     * @author: luoCan
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime = new Date();

    /**
     * Description: a
     * 公告标题
     * @author: luoCan
     */
    private String title;

    /**
     * Description: a
     * 学号
     * @author: luoCan
     */
    private Integer userId;

    /**
     * Description: a
     * 发布人
     * @author: luoCan
     */
    private String userName;


}
